{% extends 'home.html' %}
{% block content_main %}
    <style>
        tr, th, #page_dive {
            text-align: center;
            vertical-align: middle;
        }
    </style>
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">查看出版社</h3>
        </div>
        <div class="panel-body">
            <table class="table table-hover table-bordered">
                <thead>
                <tr>
                    <th>序号</th>
                    <th>出版社</th>
                    <th>地址</th>
                    <th>联系邮箱</th>
                    <th>描述</th>
                </tr>
                </thead>
                <tbody>
                {% for publish in publish_obj %}
                    <tr>
                        <td class="w100">{{ forloop.counter }}</td>
                        <td>{{ publish.name }}</td>
                        <td>{{ publish.addr }}</td>
                        <td>{{ publish.email }}</td>
                        <td>{{ publish.desc }}</td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
            <div id="page_dive">{{ page_html|safe }}</div>
        </div>
    </div>
{% endblock %}